import request from "@/utils/request";

/**分红池列表 */
export function getShareOutBonusLevelPage(params) {
  return request({
    url: "/admin/ShareOutBonus/getShareOutBonusLevelPage",
    method: "get",
    params,
  });
}

/**分红池列表详情 */
export function getShareOutBonusLevelById(params) {
  return request({
    url: "/admin/ShareOutBonus/getShareOutBonusLevelById",
    method: "get",
    params,
  });
}

/**分红池新增 */
export function saveShareOutBonusLevel(data) {
  return request({
    url: "/admin/ShareOutBonus/saveShareOutBonusLevel",
    method: "post",
    data,
  });
}

/**分红池修改 */
export function updateShareOutBonusLevel(data) {
  return request({
    url: "/admin/ShareOutBonus/updateShareOutBonusLevel",
    method: "post",
    data,
  });
}

/**分红池删除 */
export function deleteShareOutBonusLevelById(id) {
  return request({
    url: `/admin/ShareOutBonus/deleteShareOutBonusLevelById/${id}`,
    method: "get",
  });
}

/**充值分红池 */
export function topUpShareOutBonusLevel(params) {
  return request({
    url: `/admin/ShareOutBonus/topUpShareOutBonusLevel`,
    method: "get",
    params,
  });
}

/**查询分红池用户 */
export function getSvipPage(params) {
  return request({
    url: "/admin/ShareOutBonus/getSvipPage",
    method: "get",
    params,
  });
}

/**查询发放记录列表 */
export function shareOutBonusLevelRecord(params) {
  return request({
    url: "/admin/shareOutBonusLevelRecord/list",
    method: "get",
  });
}
